package maui;

import utilities.Constants;
import netcom.AnnouncmentThread;
import netcom.ConnectionThread;

public class MauiManager {
	
	private AnnouncmentThread t1;
	private ConnectionThread t2;
	
	public MauiManager(){
		//run the threads
		t1 = new AnnouncmentThread();
		t2 = new ConnectionThread();
		
		new Thread(t1).start();
		System.out.println("Announcment Thread is Runnig");
		new Thread(t2).start();
		System.out.println("Connection Thread is Runnig\n");
		
		System.err.println("\n\nMAUI SERVER is Running on\n:");
		System.err.println("Beacon Port: "+Constants.BQ_PORT);
		System.err.println("\nService Port: "+Constants.SRV_PORT);
		System.err.println("\n Beacon interval (in ms): "+Constants.ANNOUNCEMENTS_SLEEP);
		
		
		
	}

}
